package comitheima.a05oopextendsdemo05;

public class Student  extends  Person{
    public  Student(){
        //子类构造方法中隐藏的super（）去访问父类的无参构造
        super();
        System.out.println("子类的无参构造");
    }
    public  Student(String name,int age){
        //子类构造方法中手动去在super方法中传参数 就可以去调用带参构造
        super(name,age);
        System.out.println("子类的无参构造");
    }
}
